package com.gss.module.generator.entity;

import lombok.Data;

import java.util.List;

/**
 * @author DYang
 * @date 2023/5/30
 */
@Data
public class PomEntity {

    /**
     * 父级依赖
     */
    private String parentDependency;
    /**
     * 版本名称
     */
    private String versionName;
    /**
     * 版本
     */
    private String version;
    /**
     * 分组id  com.example.test
     */
    private String groupId;
    /**
     * 坐标id  test-demo
     */
    private String artifactId;
    /**
     * 包是否引用
     */
    private boolean enable;

    /**
     * 依赖信息
     */
    private List<PomEntity> dependencyList;


    public PomEntity parentDependency(String parentDependency){
        this.parentDependency = parentDependency;
        return this;
    }

    public PomEntity versionName(String versionName){
        this.versionName = versionName;
        return this;
    }

    public PomEntity version(String version){
        this.version = version;
        return this;
    }

    public PomEntity groupId(String groupId){
        this.groupId = groupId;
        return this;
    }

    public PomEntity artifactId(String artifactId){
        this.artifactId = artifactId;
        return this;
    }

    public PomEntity dependencyList(List<PomEntity> dependencyList){
        this.dependencyList = dependencyList;
        return this;
    }

    public PomEntity enable(boolean enable) {
        this.enable = enable;
        return this;
    }

}
